# 子类不能继承私有化属性。
class Person:
    def __init__(self):
        self.__age=18
        pass
    def getAge(self):
        return self.__age
    def setAge(self,age):
        self.age=age
        pass
    pass
class ChinaPerson(Person):
    def getAge(self):
        print(self.__age)
        pass
    pass
c=ChinaPerson()
c.getAge()